//
//  ImageTableViewCell.m
//  Mahjong
//
//  Created by Chen on 16/9/17.
//  Copyright © 2016年 Elliot. All rights reserved.
//

#import "ImageTableViewCell.h"



@interface ImageTableViewCell()
{
    UIView *grandView;
}

@end


@implementation ImageTableViewCell



-(void)drawRect:(CGRect)rect{
    [super drawRect:rect];
    
    //允许用户交互
    _detailImgViewOne.userInteractionEnabled = YES;
    //添加点击手势
    UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapAction)];
    [_detailImgViewOne addGestureRecognizer:tapGesture];
}
//点击图片后的方法(即图片的放大全屏效果)
- (void) tapAction{
    [self.delegate image];
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.imgView.layer.cornerRadius = 45/2.0;
    self.imgView.clipsToBounds = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
